package com.haihong.consumer.controller;

import com.haihong.consumer.service.RemoteInterface;
import com.haihong.consumer.service.TestCloudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试springCloud
 *
 * @author admin
 * @version 1.0  2019/8/20 15:17
 */
@RestController
@RequestMapping(value = "/test")
public class TestCloudController {

    @Autowired
    private TestCloudService testCloudService;

    @RequestMapping(value = "/first")
    public Object getInfo(String name){
        return testCloudService.getOtherInfo(name);
    }
}
